using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace SharedObjects
{
	[DataContract] public class ComputerSystemAccount : EntityBase
	{
		[DataMember] public List<Credential> Credentials { get; set; }
		[DataMember] public string Username { get; set; }

		//this is for temporary accounts (someone creates an account on a hacked box). Timestamp vs MaintainanceInterval of CS ensures deletion
		[DataMember] public DateTime CreationTime { get; set; }
		[DataMember] public bool IsTemporary { get; set; }

		//determines if this account will be used in case everything is bypassed.
		//ex. username/password is cracked, then the IsDefault=true account will be used for all subsequent systems as well.
		[DataMember]
		public bool IsDefault { get; set; }
	}
}